import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import axios from './request/http'
import {createPinia} from 'pinia'

// createApp(App).mount('#app')
const app = createApp(App)//创建app实例
//创建pinia实例
const pinia=createPinia()
//挂载pinia实例
app.use(pinia)
app.use(router)//挂载路由
//全局挂载axios
app.config.globalProperties.$axios = axios
app.mount("#app")//挂载app